package com.gnerv.battle.boot.module.base.model.dto;

import com.gnerv.battle.boot.module.base.model.bo.NoticeBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class NoticeCreateDTO {

    private String accountUkId;
    private String title;
    private String content;
    private String status;
    private Integer sort;

    public NoticeBO toNoticeBO() {
        NoticeBO noticeBO = new NoticeBO();
        BeanUtils.copyProperties(this, noticeBO);
        return noticeBO;
    }
}
